package com.wangzefeng.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-18
 */
public class SysFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "file_id", type = IdType.AUTO)
    private Integer fileId;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 文件后缀
     */
    private String fileSuffix;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 文件全名
     */
    private String fileFullName;

    /**
     * 所属模块
     */
    private String forModule;

    /**
     * 上传文件的用户
     */
    private Integer userId;

    /**
     * 上传时间
     */
    private Date uploadTime;


    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSuffix() {
        return fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getFileFullName() {
        return fileFullName;
    }

    public void setFileFullName(String fileFullName) {
        this.fileFullName = fileFullName;
    }

    public String getForModule() {
        return forModule;
    }

    public void setForModule(String forModule) {
        this.forModule = forModule;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    public String toString() {
        return "SysFile{" +
        "fileId=" + fileId +
        ", fileName=" + fileName +
        ", fileSuffix=" + fileSuffix +
        ", fileType=" + fileType +
        ", fileFullName=" + fileFullName +
        ", forModule=" + forModule +
        ", userId=" + userId +
        ", uploadTime=" + uploadTime +
        "}";
    }
}
